package com.example.cloud.exception;

import lombok.Getter;

/**
 * 认证异常
 * 用于表示用户未登录、token过期或无效等情况
 */
@Getter
public class AuthException extends RuntimeException {
    
    private final int code;
    
    public AuthException(String message) {
        super(message);
        this.code = 401;
    }
    
    public AuthException(String message, Throwable cause) {
        super(message, cause);
        this.code = 401;
    }
} 